package com.ecloud.common.data.dynamic;

/**
 * 字符串工具类
 *
 * @author LiuGangQiang Create in 2021/07/14
 */
class StringUtils {
    /**
     * 校验是否是有效字符串
     *
     * @author LiuGangQiang Create in 2021/04/29
     * @param str 字符串
     * @return {@link Boolean}
     */
    public static boolean isBlank(String str) {
        int strLen;
        if (str == null || (strLen = str.length()) == 0) {
            return true;
        }
        for (int i = 0; i < strLen; i++) {
            if ((Character.isWhitespace(str.charAt(i)) == false)) {
                return false;
            }
        }
        return true;
    }
}
